<div class="st-cp-pg-detalhe">
     <div id="agendamento">
        <div class="fechada">
            <a href="javascript:void(0);">agende sua avaliacao &nbsp;&nbsp;&nbsp;<img src="<?php echo $this->urlbase.'/public/media/images/icone_seta.png'?>"/></a>
        </div>
        
        <div id="blc_aberta">
            <div class="aberta">
                <form id="form" method="post">
                    <label>nome</label><input type="text" id="nome" name="nome" />
                    <label>telefone</label><input class="telefone" type="text" id="" name="telefone" />
                    <label>e-mail</label><input type="text" id="email" name="email" />
                    <label>cidade</label><input type="text" id="cidade" name="cidade" />
                    <label>queixa</label>
                    <select id="queixa"   name="queixa">
                        <?php foreach($this->queixa as $queixa) { ?>
                        <option value="<?php echo  $queixa['QEX_NOM'];?>"><?php echo  $queixa['QEX_NOM'];?></option>
                        <?php } ?>
                    </select>
                    <input width="50px"type="submit" id="enviar" name="enviar" value="enviar" />
                </form>
            </div>
        </div>
    </div>  

    <div class="cnt-slider">
        <?php foreach($this->galeria as $gal) {
            
            $nom_img = explode('.', $gal['GAL_IDIMG']);
            $nom_img = $nom_img[0];
            
            $imgs = glob('public/upload/procedimento/'.$nom_img.'.*');
            
            foreach($imgs as $key => $img) $img = $img;  
            $img = str_replace ('_tb', '', $img);
            $img = str_replace ('_g_', '_f_', $img);
        ?>
        <img class="colImg" src="<?php echo $this->urlbase . '/'. $img; ?>" alt="imagem-procedimento"/>
        <?php } ?>
    </div>
    
    <script src="<?php echo $this->urlbase;?>/public/media/js/jquery.cycle.all.min.js?1=1" type="text/javascript"></script>
    
    <script>
    $(document).ready(function() {  
        $('.cnt-slider').cycle({  timeout: 4000 }); 
    });
    </script>
    
    <div class="colcontent">
        <div class="titulo">
            <?php echo $this->row['PRC_NOM']; ?>  
        </div>
        <div class="descricao">
            <?php echo $this->row['PRC_TXT'] ?>
        </div>
        <div class="caracteristicas">
            <div class="col">
            <?php
                $aux = 1;
                foreach ($this->result['item'] as $row){ ?>
                <div class="itemcaract">
                    <img src="<?php echo $this->urlbase . '/public/media/images/' . $row['NOME'] . '.png' ?>" alt="<?php echo $row['TITULO']; ?>">
                    <div class="caracInfo">
                        <div class="titcaract"><?php echo $row['TITULO']; ?></div>
                        <div class="desccaract"><?php echo $row['DESCRICAO']; ?></div>
                    </div>
                </div>
                <?php 
                    if($aux == 3){
                        break;
                    }else{
                        $aux += 1;
                    }        
                }?>
            </div>
            
            <div class="col">
            <?php
                $aux = 1;
                
                foreach ($this->result['item'] as $row){ 
                    if($aux > 3){?>
                        <div class="itemcaract">
                            <img src="<?php echo $this->urlbase . '/public/media/images/' . $row['NOME'] . '.png' ?>" alt="<?php echo $row['TITULO']; ?>">
                            <div class="caracInfo">
                                <div class="titcaract"><?php echo $row['TITULO']; ?></div>
                                <div class="desccaract"><?php echo $row['DESCRICAO']; ?></div>
                            </div>
                        </div>
                        <?php
                    }
                    $aux += 1;
                }?>
            </div>
        </div>
    </div>
    <div class="menu-footer">
        <?php /*
        <table width="100%">
            <tr>
                <?php foreach($this->procs as $proc){ ?>
                    <td><a href="<?php echo $this->urlbase.'/procedimentos/detalhe/id/'.$proc['PRC_ID'] ?>"><?php echo $proc['PRC_NOM']?></a></td>
                <?php } ?>               
            </tr>
        </table>
         */ ?>
        <ul>
            <?php foreach($this->procs as $proc){ ?>
                <li><a href="<?php echo $this->urlbase.'/procedimentos/detalhe/id/'.$proc['PRC_ID'] ?>"><?php echo $proc['PRC_NOM']?></a></li>
            <?php } ?>   
        </ul>
    </div>  
</div>

<script src="<?php echo $this->urlbase;?>/public/media/js/jquery.jcarousel.min.js" type="text/javascript"></script>
<script>
$(document).ready(function() {  
    $('.menu-footer').jcarousel({
        scroll: 2,
        visible: 6,
        animation: 1000,
        auto: 6,
        size: 13,
        wrap: 'circular',
        itemFallbackDimension: 100
    });
});
</script>
